Subchains and trees topic
Subchains and trees
Subchains anchored into a parent, cross chain proofs from the parent header, and chain trees that produce a whole hierarchy in rounds.
A parent with a dynamic policy registers children in any block through signed registry operations, keeps one record per child in a Merkle registry, and proves one child with its record and a short path however many children it holds. Chains and trees are saved with snapshot and brought back with restoreChain and restoreChainTree.
Classes
- ChainTree Subchains and trees
- A built family of chains driven in process. produce anchors children upward automatically; ChainTreeQueries.proveAccount proves any descendant from the root header.
- ChildRecord Subchains and trees
- One child's entry in a dynamic registry: what the parent commits about it and what a child proof carries.
- TreeNode Subchains and trees
- One chain of a family; children are subchains and must be BFT.
Extensions
- AviaryChildProofs on Aviary Subchains and trees
- Proofs against a dynamic registry, and the anchor a parent takes next.
- AviaryDynamicSubchains on Aviary Subchains and trees
- Subchains version 2: a parent with a dynamic policy registers children in any block and commits its registry as a Merkle tree.
- AviarySubchainOps on Aviary Subchains and trees
- Registry operations: the unsigned bodies a registrar then signs.
- AviarySubchainOpSigning on Aviary Subchains and trees
- Authorising registry operations as a registrar.
- AviarySubchainProofs on Aviary Subchains and trees
- Subchain anchors and cross chain proofs.
- AviarySubchains on Aviary Subchains and trees
- Subchains: registering children and binding them to a parent.
- AviaryTrees on Aviary Subchains and trees
- Chain trees: a declared family of chains built and driven together.
- ChainRegistry on Chain Subchains and trees
- The parent side of a chain with a dynamic policy: registry operations, records and child proofs.
- ChainSubchains on Chain Subchains and trees
- The parent side of a chain: anchoring children and proving into them.
- ChainTreeQueries on ChainTree Subchains and trees
- Read only views and proofs of a chain tree.
- ChainTreeRounds on ChainTree Subchains and trees
- Driving every chain of a family together.
- TreeNodeBuilding on TreeNode Subchains and trees
- Fluent construction and inspection of chain families.
Enums
- ChildStatus Subchains and trees
- Whether a parent still anchors a child.
- RegistrarScheme Subchains and trees
- The signature scheme of a registrar key: the transaction schemes.
Typedefs
- FinalizedHook = void Function(int chainId, Uint8List block) Subchains and trees
- Observes a finalized block on a chain.
- RegistrarEntry = ({Uint8List publicKey, RegistrarScheme scheme}) Subchains and trees
- A registrar: the scheme and public key allowed to authorise registry operations on a parent with a dynamic policy.
- RegistryCounts = ({int authorityEpoch, int open, int records}) Subchains and trees
- The sizes of a dynamic registry and its authority epoch, which grows by one each time the registrar set is replaced.
- TreeValidator = ({int power, Uint8List publicKey, Uint8List? secret}) Subchains and trees
-
A tree validator;
secretis null when this process does not hold it. -
TxSource
= List<
Uint8List> Function(int chainId, int timestamp) Subchains and trees - Supplies the encoded transactions a chain includes when it produces.